package com.rran.study.designpattern.factory.singleton.hungry;

/**
 * @author yy
 * @Type StaticClC.java
 * @Desc 静态内部类单例模式
 * @date 2020/7/23 10:27
 */
public class StaticCIC {

    private StaticCIC() {
    }

    public static StaticCIC getInstance() {
        return HelperHolder.INSTANCE;
    }

    private static class HelperHolder {
        private static final StaticCIC INSTANCE = new StaticCIC();
    }
}
